package com.vik.webgallery.beans;


public class Comment extends BaseBean{
	
	private long id;
	
	private long photoId;
	
	private long authorId;
	
	private User author;
	
	private Comment parent;
	
	private String text;
	
	public Comment(){
		regenerateId();
	}
	
	public User getAuthor() {
		return author;
	}

	public void setAuthor(User author) {
		this.author = author;
	}

	public Comment getParent() {
		return parent;
	}

	public void setParent(Comment parent) {
		this.parent = parent;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	
	
	public long getPhotoId() {
		return photoId;
	}

	public void setPhotoId(long photoId) {
		this.photoId = photoId;
	}
	
	

	public long getAuthorId() {
		return authorId;
	}

	public void setAuthorId(long authorId) {
		this.authorId = authorId;
	}

	public void regenerateId(){
		this.id = System.currentTimeMillis();
	}

}
